package com.hxxy.wyp.petsLover.common.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String userName;
    private String userPassword;
    private Long phone;
    private String email;
    private String introduce;
    private String nickname;
    private String sex;
    private String pic;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;
    private String constellation;
    private String area;
//    private Long accountId;
//    private String petId;
//    private String orderId;
//    private String shopCartId;
//    private String messageId;
//    private String userShareId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate registrationTime;
    private String status;
    private String isOnline;

}
